public class Text {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.creatTree();
        System.out.println(root.val);//打断点调试查看二叉树
        binaryTree.proOrder(root);//前序遍历
        System.out.println();//遍历完换行
        binaryTree.inOrder(root);//中序遍历
        System.out.println();
        binaryTree.endOrder(root);//后序遍历
        System.out.println();
    }
}
